package com.hogan.hoganproject.video.mvp;

import io.reactivex.Observable;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Consumer;

/**
 * Author: chenhu
 * Time: 2020/8/31 16:46
 * Description do somethings
 */
public class VideoPresenter extends VideoControl.VPresenter<VideoControl.VideoView> {

    @Override
    public void setName() {
        Disposable mDisposable = Observable.just("什么鬼东西").subscribe(new Consumer<String>() {
            @Override
            public void accept(String s) {
                mView.setName(s);
            }
        });
        addDisposable(mDisposable);
    }

    public void setResetName() {
        if (mView != null) {
            mView.setName("setResetName");
        }
    }
}
